package com.biscuit.page.basicservice.api.model.response.authorization;

import com.biscuit.common.base.BaseAMO;
import com.biscuit.page.basicservice.api.model.vo.UserDetailVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author biscuit
 * @createTime 2024/5/24 16:02
 */
@Getter
@Setter
public class AuthorizationAResp extends BaseAMO {

    @ApiModelProperty(value = "授权标识")
    private String authorization;

    @ApiModelProperty(value = "授权详情信息")
    private AuthorizationInfo info;

    @Getter
    @Setter
    public static class AuthorizationInfo {

        @ApiModelProperty("用户Id")
        private Long id;

        @ApiModelProperty("用户唯一标识")
        private String uId;

        @ApiModelProperty("用户邮箱")
        private String email;

        @ApiModelProperty("用户手机号")
        private String mobile;

        @ApiModelProperty("用户昵称")
        private String nickName;

        @ApiModelProperty("用户头像")
        private String avatar;

        @JsonFormat(pattern = "yyyy-MM-dd")
        @ApiModelProperty("用户生日")
        private LocalDate birthday;

        @ApiModelProperty("用户收藏项数量")
        private Integer collectCount;

        @ApiModelProperty("注册时间")
        private LocalDateTime registerTime;

        @ApiModelProperty("用户详情信息")
        private UserDetailVO userDetailVO;

    }

}
